#!/bin/sh
iwpriv ath0 mode 11b;
ifconfig ath0 down;
sleep 1;
ifconfig wifi0 down;
sleep 1;
wlanconfig ath0 destroy;
sleep 1;
wlanconfig ath0 create wlandev wifi0 wlanmode monitor;
sleep 1;
iwpriv ath0 mode 11b;
sleep 1;
iwconfig ath0 channel 4;
sleep 1;
#sysctl -w net.ath0.dev_type=804
echo '801' > /proc/sys/net/ath0/dev_type;
sleep 1;
ifconfig wifi0 up txqueuelen 1;
sleep 1;
ifconfig ath0 up txqueuelen 1 mtu 1600;



